package com.peter.design.pattern.chain.general;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/31 00:22
 * @Description:
 */
public abstract class Handler {
    protected Handler nextHandler;

    public void setNextHandler(Handler successor){
        this.nextHandler = successor;
    }

    public abstract void handleRequest(String request);

}
